﻿<?xml version="1.0" encoding="utf-8"?>
<Witd:WITD application="Work item type editor" version="1.0" xmlns:Witd="http://schemas.microsoft.com/VisualStudio/2008/workitemtracking/typedef">
  <WORKITEMTYPE name="Sprint">
    <DESCRIPTION>A sprint.</DESCRIPTION>
    <FIELDS>
      <FIELD name="Integration Build" refname="Microsoft.VSTS.Build.IntegrationBuild" type="String" reportable="dimension" />
      <FIELD name="Iteration Path" refname="System.IterationPath" type="TreePath" />
      <FIELD name="State" refname="System.State" type="String" />
      <FIELD name="Start Date" refname="Microsoft.VSTS.Scheduling.StartDate" type="DateTime" reportable="dimension" />
      <FIELD name="Finish Date" refname="Microsoft.VSTS.Scheduling.FinishDate" type="DateTime" reportable="dimension" />
      <FIELD name="Retrospective" refname="Microsoft.VSTS.Common.Retrospective" type="HTML" />
      <FIELD name="Description HTML" refname="Microsoft.VSTS.Common.DescriptionHtml" type="HTML" />
    </FIELDS>
    <WORKFLOW>
      <STATES>
        <STATE value="Created" />
      </STATES>
      <TRANSITIONS>
        <TRANSITION from="" to="Created">
          <REASONS>
            <DEFAULTREASON value="New" />
          </REASONS>
          <FIELDS>
            <FIELD refname="Microsoft.VSTS.Common.Retrospective">
              <DEFAULT from="value" value="&lt;h5&gt;What worked?&lt;/h5&gt;&lt;h5&gt;What didn't work?&lt;/h5&gt;&lt;h5&gt;What will we do differently?&lt;/h5&gt;" />
            </FIELD>
          </FIELDS>
        </TRANSITION>
      </TRANSITIONS>
    </WORKFLOW>
    <FORM>
      <Layout>
        <Group>
          <Column PercentWidth="100">
            <Control FieldName="System.IterationPath" Type="WorkItemClassificationControl" Label="Ite&amp;ration:" LabelPosition="Left" />
          </Column>
        </Group>
        <Group Margin="(0,5,0,0)">
          <Column PercentWidth="50">
            <TabGroup>
              <Tab Label="Details">
                <Group>
                  <Column PercentWidth="100">
                    <Control FieldName="Microsoft.VSTS.Scheduling.StartDate" Type="DateTimeControl" Label="Start Date:" LabelPosition="Left" />
                    <Control FieldName="Microsoft.VSTS.Scheduling.FinishDate" Type="DateTimeControl" Label="Finish Date:" LabelPosition="Left" />
                  </Column>
                </Group>
                <Control FieldName="Microsoft.VSTS.Common.DescriptionHtml" Type="HtmlFieldControl" Label="Sprint Goal" LabelPosition="Top" Dock="Fill" />
              </Tab>
              <Tab Label="Retrospective">
                <Control FieldName="Microsoft.VSTS.Common.Retrospective" Type="HtmlFieldControl" Label="" LabelPosition="Top" Dock="Fill" />
              </Tab>
            </TabGroup>
          </Column>
          <Column PercentWidth="50">
            <TabGroup>
              <Tab Label="History">
                <Control FieldName="System.History" Type="WorkItemLogControl" Label="" LabelPosition="Top" Dock="Fill" />
              </Tab>
              <Tab Label="Attachments">
                <Control Type="AttachmentsControl" Label="" LabelPosition="Top" Dock="Fill" />
              </Tab>
            </TabGroup>
          </Column>
        </Group>
      </Layout>
    </FORM>
  </WORKITEMTYPE>
</Witd:WITD>